/*
 * @Author: 胡海
 * @Date: 2020-04-07 02:18:54
 * @LastEditors: 胡海
 * @LastEditTime: 2020-04-07 02:26:14
 * @Description: 
 */
const HuangS = 'color:#FFC600' // 黄色
const LvS = 'color:#71D189' // 绿色
const HuiS = 'color:#8BA3C2' // 灰色
const HongS = 'color:#F56767' // 红色


export const cpType = [{
    value: 0,
    label: '热销榜',
    color: LvS
  },
  {
    value: 1,
    label: '每日折扣',
    color: HuiS
  },
  {
    value: 2,
    label: '客厅灯',
    color: LvS
  },
  {
    value: 3,
    label: '卧室灯',
    color: LvS
  },
  {
    value: 4,
    label: '儿童房灯',
    color: HuiS
  },
  {
    value: 5,
    label: '餐厅灯',
    color: HuiS
  },
  {
    value: 6,
    label: '景观灯',
    color: HuiS
  },
  {
    value: 7,
    label: '草坪灯',
    color: LvS
  },
  {
    value: 8,
    label: '庭院灯',
    color: LvS
  },
  {
    value: 9,
    label: '阶梯灯',
    color: HuiS
  },
  {
    value: 10,
    label: '埋地灯',
    color: HuiS
  },
  {
    value: 11,
    label: '投光灯',
    color: HuiS
  },
  
]


export function filter_cpType(val) {
  let obj = cpType.find(item => item.value == val)
  return obj
}



